﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WpfLob.Frame;
using WpfLob.Projects.DataModel;

namespace WpfLob.Projects.ViewModel
{
    public class ProjectViewModel : Pane
    {
        private Project _project;

        public ProjectViewModel(IPresenter presenter, Project project)
            : base(presenter)
        {
            _project = project;
        }

        public string Name
        {
            get { return _project.Name; }
            set
            {
            	_project.Name = value;
                FirePropertyChanged("Name");
                FirePropertyChanged("Title");
            }
        }

        public override string Title
        {
            get { return _project.Name; }
        }
    }
}
